<?php
namespace App\Models\Hotel;
use Carbon\Carbon;
use App\Models\BaseModel;
use App\Helpers\MoneyHelper;
use App\Format\BaseFormat;

/**
 * App\Models\Hotel\HotelFacility
 *
 * @property int $id
 * @property int $hotel_id 酒店ID
 * @property int $facility_id 设施ID
 * @property \Illuminate\Support\Carbon $created_at
 * @property \Illuminate\Support\Carbon $updated_at
 * @property-read mixed $faddress
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility apiBaseQuery($whereParams = [])
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility bgBaseQuery($whereParams = [])
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel paramsQuery($fields, $params = [])
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility query()
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility whereFacilityId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility whereHotelId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BaseModel whereIds($ids = [])
 * @method static \Illuminate\Database\Eloquent\Builder|HotelFacility whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class HotelFacility extends BaseModel
{
    /**
     * Define table name
     *
     * @var string
     */
    protected $table = 'hotel_facilities';

    /**
     * Define a primary key
     *
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * A property that cannot be batched.
     *
     * @var array
     */
    protected $guarded = ['id'];
    protected $hidden = ['updated_at'];
    /*********************************************属性格式化***************************************************************/
    
    /*********************************************设置属性***************************************************************/
    
    /*********************************************模型操作***************************************************************/
    public function scopeBgBaseQuery($query, $whereParams = []) {
    }
    public function scopeApiBaseQuery($query, $whereParams = []) {
    }
    /*********************************************模型关联***************************************************************/

}